package net.qiqb.ddd.user.infrastructure;

import lombok.extern.slf4j.Slf4j;
import net.qiqb.core.domain.annotation.AggregatePersistence;
import net.qiqb.ddd.user.domain.UserAggregateRoot;

@Slf4j
public class UserPersistence implements AggregatePersistence<UserAggregateRoot> {
    @Override
    public void persistAggregate(UserAggregateRoot newAR, UserAggregateRoot oldAR) {
        log.info("聚合领域：用户持久化[{}]", newAR);
    }
}
